home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / T-Z / Windoids.cpt / Windoid 1.6.1 / card_10516.txt < prev    next >
Text File  |  1989-04-13  |  4KB  |  58 lines

  1. -- card: 10516 from stack: in.1
  2. -- bmap block id: 10805
  3. -- flags: 0000
  4. -- background id: 10029
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 11
  9. ----- text -----
  10. 1.  Tear off the "Tools" menu. If you double-click on the Eraser tool, you'll erase all card paint. This can be quite shocking if you do it by mistake. If this happens to you, either select UNDO from the Edit menu, press the tilde ( ~ ) key, the escape key, or select CMD-Z from the keyboard before doing anything else.  This will bring your paint back for you.  If CMD-Z doesn't get it back, you can try REVERT from the Paint menu.  Revert takes you back to the state the paint was in when you last entered the card.  Leaving a card, even for a moment, is the same as saving all the paint elements on that card or choosing Keep from the Paint menu.  For fun, double-click on all the other powerful paint tools and see what happens.
  11.  
  12. 2.  To initialize a variable in HyperTalk, you should put the assignment of the variable in an  "on openStack" handler. You will normally only want to initialize your variables the first time you enter your stack.  If this is so, you will need to put the following into your openStack handler...
  13.  
  14. on openstack
  15.        global var
  16.        if var is empty then put 12 into var
  17. end openstack
  18.  
  19. This way, no matter how many times the user comes into their stack during a HyperCard session, the variable "var" will only be assigned this value the first time, since the second time into the stack the global variable will no longer be empty.
  20.  
  21. 3.  If you have a non-SCSI (old HD-20) hard disk or, heaven forbid, a floppy based system, and you have tried to play a long, sophisticated sound in HyperCard, you might notice very poor sound quality because of numerous clicks and pops.  These clicks and pops are caused by your disks access time being too slow when HyperCard tries to access them.  There is, however, a nice workaround (as suggested by Barbara at Farallon Computing). To stop HyperCard from accessing the disk (doing any processing) while the sound is playing. Try this in your script...
  22.  
  23. play "nameOfSound"
  24. wait until the sound is "done"
  25.  
  26. 4.  A tip from Paul Foraker...  If the msg box is already open, and you are typing in a field, there is a way to start typing in the msg box without moving your fingers from the keyboard. Type CMD-M twice and you can now type in the msg box.
  27.  
  28. 5.  Tear off the "Tools" windoid. Double click on "A" to access different fonts and font attributes for typing Paint Text onto the card or background. If you have already started typing and have not clicked anywhere else, when you change the font you will change the font for everything you just typed. If you have already started typing and you wish to change the font only for what you type next, then click with the mouse at where you want to start before again double-clicking on the "A" in the tool menu.
  29.  
  30. 6.  "Not" in HyperTalk works similarly to English. Therefore , you can say...
  31.  
  32. if variable is not "Yes" then go next card
  33.  
  34. You may also think of "Not" in HyperTalk as a boolean form of the false condition. For example you may have a button which you want to alternately hide and show a field...
  35.  
  36. on mouseup
  37.   set visible of field "fldName" to not visible of field "fldName"
  38. end mouseup
  39.  
  40. 7.  If you protect a stack to allow only the browsing userlevel, you can reset it to a different level by pressing on the Command key before clicking on the File menu.  You will then be able to choose "Protect 
  41. Stack" and reset the userlevel.
  42. Ô£ø
  43.  
  44.  
  45. -- part contents for background part 17
  46. ----- text -----
  47. HyperCard
  48. PowerTips
  49. Six
  50.  
  51. -- part contents for background part 18
  52. ----- text -----
  53. ‚Ä¢ by
  54. Phil Wyman
  55.  
  56. -- part contents for background part 19
  57. ----- text -----
  58. volume 1 ‚Ä¢  number  6  ‚Ä¢  card 4  ‚Ä¢